package com.bdqn.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;


@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Employee {

  private int id;//序号
  private String empNum;//员工编号
  private String empName;//员工姓名
  private String sex;//性别
  private String phone;//联系电话
  private String fax;//联系传真
  private String email;//电子邮箱
  private String zip;//邮编
  private String address;//联系地址
  private int userId;//用户序号
  private SysUsers user;//用户序号

  public Employee(int id, String empNum, String empName, String sex, String phone, String fax, String email, String zip, String address,  int userId) {
    this.id = id;
    this.empNum = empNum;
    this.empName = empName;
    this.sex = sex;
    this.phone = phone;
    this.fax = fax;
    this.email = email;
    this.zip = zip;
    this.address = address;
    this.userId =userId;
  }
  public Employee(int id, String empNum, String empName, String sex, String phone, String fax, String email, String zip, String address,  SysUsers user) {
    this.id = id;
    this.empNum = empNum;
    this.empName = empName;
    this.sex = sex;
    this.phone = phone;
    this.fax = fax;
    this.email = email;
    this.zip = zip;
    this.address = address;
    this.user = user;
  }
}
